﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Utility;
using Data;

namespace DataAccess
{
    public class Tbl_MajorBUS 
    {
        LinqUtility<tbl_major> context = new LinqUtility<tbl_major>();

        public List<tbl_major> getListMajor()
        {
            return context.GetAll();
        }

        public void insertMajor(tbl_major tm)
        {
            context.Insert(tm);
        }

        public void updateMajor(tbl_major tm)
        {
            context.Update(tm);
        }

        public void delete(tbl_major tm)
        {
            context.Delete(tm);
        }
      
    }
}
